package com.android.lovely.data

import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
data class Preferential(
    @Json(name = "act_list") val actList: List<SubPreferential> = listOf(),
    @Json(name = "countdown") val countdown: Int = 0,
    @Json(name = "first_time") val firstTime: String = "",
    @Json(name = "first_timestamp") val firstTimestamp: Int = 0
)

@JsonClass(generateAdapter = true)
data class SubPreferential(
    @Json(name = "act_des") val actDes: String = "",
    @Json(name = "act_subtitle") val actSubtitle: String = "",
    @Json(name = "act_title") val actTitle: String = "",
    @Json(name = "banner_url") val bannerUrl: String = "",
    @Json(name = "pic_url") val picUrl: String = "",
    @Json(name = "gift_num") val giftNum: Int = 0,
    @Json(name = "icon_url") val iconUrl: String = "",
    @Json(name = "id") val id: Int = 0,
    @Json(name = "participate_num") val participateNum: Int = 0,
    @Json(name = "product_list") val productList: List<PayDetail> = listOf()
)